<include file="Public:js" /> 
<div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="#">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">追溯信息</span></div>
        </div>
        <div class="search-wrap">
            <div class="search-content">
                <form action="{:U('Qrcode/goodsList',array('supplier_id'=>$supplier_id))}" method="post">
                    <table class="search-tab">
                        <tr>
                           
                            
                            <th width="70">商品名称:</th>
                            <td><input class="common-text" placeholder="关键字" name="goods_name" value="" id="" type="text"></td>
                            <td><input class="btn btn-primary btn2" name="sub" value="查询" type="submit"></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
        <div class="result-wrap">
           
                <div class="result-title">
                    <div class="result-list">
                        <!-- <a href="insert.html"><i class="icon-font"></i>新增</a>
                        <a id="batchDel" href="javascript:void(0)"><i class="icon-font"></i>批量删除</a>
                        <a id="updateOrd" href="javascript:void(0)"><i class="icon-font"></i>更新排序</a> -->
                        <a style="float:right;" href="{:U('Qrcode/addZhuisuInfo',array('supplier_id'=>$supplier_id,'goods_id'=>$goods_id))}"><i class="icon-font"></i>添加</a>
                         <a style="float:right;" href="javascript:history.back(-1)"><i class="icon-font"></i>返回</a>
                    </div>
                </div>
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                            <!--<th class="tc" width="5%"><input class="allChoose" name="" type="checkbox"></th>-->
                            <th>编号</th>
                            <th>防伪码</th>
                            <th>产品名称</th>
                            <th>产品品牌</th>
                            <th>生产厂家</th>
                            <th>添加时间</th>
                            <th>二维码</th>
                            <th>查询次数</th>
                            <th>状态</th>
                            
                            <th>操作</th>
                        </tr>
                        <foreach name="listinfo" item="ov"> 
                        <tr>
                            <!--<td class="tc"><input name="id[]" value="59" type="checkbox"></td>-->
                            <td>
                                {$ov.qr_id}
                           </td>
                            <td>{$ov.qr_sn}</td>
                            <td width='20%'>{$ov.goods_name}</td>
                            <td>{$ov.supplier_name}</td>
                            <!-- -->
                             <td>{$ov.supplier_name}</td>
                              <td>{$ov.add_time|date="Y-m-d H:i:s",###}</td>
                             <td></td>
                             <td>{$ov.y_number}</td>
                             <td><if condition="$ov.qr_start eq 1 ">冻结<else /> 正常</if></td>
                             
                            <td>
                                <if condition="$ov.qr_start eq 1 ">
                                    <a class="link-update" href="{:U('Qrcode/fwmJiedong',array('qr_id'=>$ov['qr_id']))}">解冻
                                </a>
                                <else /> 
                                    <a class="link-update" href="{:U('Qrcode/fwmDongjie',array('qr_id'=>$ov['qr_id']))}">冻结
                                </a>
                                </if>
                                
                                <a class="link-del" href="{:U('Qrcode/delFwm',array('qr_id'=>$ov['qr_id']))}">删除</a>
                                
                            </td>
                            
                        </tr>
                        </foreach> 
                        
                    </table>
                    <div class="list-page"> {$page}</div>
                </div>
          
        </div>
    </div>